print([x**2 for x in range(10)])


print([x**2 for x in range(10) if x % 3 is 0])


def squared(x):
     return x * x

print([squared(x) for x in range(30) if x % 3 is 0])



